package com.example.enterprisemanager.mvvm.adapter;

import com.example.enterprisemanager.R;
import com.example.enterprisemanager.base.BaseBindingAdapter;
import com.example.enterprisemanager.base.BaseBindingViewHolder;
import com.example.enterprisemanager.databinding.ItemGoodBinding;
import com.example.enterprisemanager.mvvm.fragment.manager.ben.Goods;

public class GoodAdapter extends BaseBindingAdapter<Goods, BaseBindingViewHolder> {
    public GoodAdapter() {
        super(R.layout.item_good);
    }

    @Override
    protected void convert(BaseBindingViewHolder helper, Goods item) {
        ItemGoodBinding binding = helper.getBinding();
        binding.setGoods(item);
    }
}
